[paket]
tanim   = Temel initramfs araçları
paketci = Cihan_Alkan
grup    = sistem
url     = https://projects.archlinux.org/mkinitcpio.git/

[gerek]
derleme =  
calisma =  

[kaynak]
1  = https://busybox.net/downloads/busybox-$surum.tar.bz2
2= https://github.com/archlinux/svntogit-packages/raw/packages/mkinitcpio-busybox/trunk/0001-ash-fix-unset_var-pattern-repl.patch
3= https://github.com/archlinux/svntogit-packages/raw/packages/mkinitcpio-busybox/trunk/config
4= https://github.com/archlinux/svntogit-packages/raw/packages/mkinitcpio-busybox/trunk/0002-decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch

[sha256]
#1       = d3089c651dffacb75a6531ebe40ec1d044ed51eeff77ef989ba08322d933ae1c

[derle]
betik =  patch -Np1 < /sources/0001-ash-fix-unset_var-pattern-repl.patch
betik =  patch -Np1 < /sources/0002-decompress_gunzip-Fix-DoS-if-gzip-is-corrupt.patch
betik =  local safeflags="-march=${CARCH/_/-} -mtune=generic -Os -pipe -fno-strict-aliasing"
betik =  sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="'"$safeflags"'"|' "/sources/config" > .config
betik =  export KCONFIG_NOTIMESTAMP=1
betik =  make -C "busybox-$surum"

[pakur]
betik = install -Dm755 "$SRC/busybox-$surum/busybox" "$PKG/usr/lib/initcpio/busybox"
